//
//  WiFiNet.m
//  Air
//
//  Created by dongguozheng on 2016/12/14.
//  Copyright © 2016年 董国政. All rights reserved.
//

#import "WiFiNet.h"
#import <SystemConfiguration/CaptiveNetwork.h>
@implementation WiFiNet
- (id)fetchSSIDInfo {
    NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces();
    id info = nil;
    for (NSString *ifnam in ifs) {
        info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam);
        if (info && [info count])
        { break; }
    }
    return info;
}

@end
